<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>定时刷新</title>
	</head>
	
	<body>
	<script language="javascript">
	<!--
	//configure refresh interval (in seconds)
	var intervalTime = 300;
	
	var countDownTime = intervalTime + 1;
	
	function countDown()
	{
		countDownTime--;
		
		if (countDownTime <=0)
		{
			countDownTime=intervalTime;
			clearTimeout(counter);
			window.location.reload();
			window.forms[0].submit();
			return;
		}
		
		if (document.all) 
		{//if IE 4+
			document.all.countDownText.innerText = countDownTime+" ";
		}
		else if (document.getElementById)
		{//else if NS6+
			document.getElementById("countDownText").innerHTML=countDownTime+" ";
		}
		counter=setTimeout("countDown()", 1000);
	}
	
	function autoRefresh()
	{
		if (document.all||document.getElementById) 
		{//CHANGE TEXT BELOW TO YOUR OWN
			document.write('离下一次<a href="javascript:window.location.reload();">刷新</a>还有 <b id="countDownText">'+countDownTime+' </b>秒');
		}
		
		countDown();
	}
	
	if (document.all||document.getElementById)
		autoRefresh();
	else
		window.onload = autoRefresh();
	//-->
	</script>
	</body>
</html>